﻿using System;

namespace Zo.Logging
{
    /// <summary>
    /// 空日志。
    /// </summary>
    public class NullLogger : ILogger
    {
        public LogLevel Level => throw new NotImplementedException();

        public void Debug(string message, string functionType = "", Exception exception = null)
        {
            Console.WriteLine(message ?? string.Empty);
        }

        public void Fatal(string message, string functionType = "", Exception exception = null)
        {
            Console.WriteLine(message ?? string.Empty);
        }

        public void LogError(string message, string functionType = "", Exception exception = null)
        {
            Console.WriteLine(message ?? string.Empty);
        }

        public void LogInfo(string message)
        {
            Console.WriteLine(message ?? string.Empty);
        }

        public void LogWarning(string message, string functionType = "", Exception exception = null)
        {
            Console.WriteLine(message ?? string.Empty);
        }

        public void SetLevel(LogLevel level)
        {
        }
    }
}